package com.wlc.base.design.Strategy;

/**
 * @author 王立朝 wanglichao@champion-credit.com
 * @description 定义支付算法策略
 * @date 2021-09-17 00:50
 */
public class Context {
    PayStrategy payStrategy;

    public Context(PayStrategy payStrategy) {
        this.payStrategy = payStrategy;
    }

    public void allPay() {
        payStrategy.algorithmInterface();
    }
}
